<?php
//require_once '../MyDebug/myDebug.class.php';

/**
 * 应用程序启动脚本
 */
global $g_boot_time;
$g_boot_time = microtime(true);

$app_config = require(dirname(__FILE__) . '/../config/boot.php');
require $app_config['QEEPHP_DIR'] . '/library/q.php';
require $app_config['APP_DIR'] . '/myapp.php';
define('Helper_Dir', $app_config['APP_DIR'].'/helper');

Q::loadFile('config.php', $app_config['APP_DIR'].'/config');
Q::loadFile('connection.class.php', $app_config['APP_DIR'].'/core');

global $uploadify_session_start;
$uploadify_session_start = false;
if(isset($_FILES['Filedata'])){
	$uploadify_session_start = true;
}

$ret = MyApp::instance($app_config)->dispatching();
if (is_string($ret)) echo $ret;

return $ret;
